﻿using Admin.Core.Common.BaseModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Admin.Core.Model.Warehouse
{
    /// <summary>
    /// 库存 入库
    /// </summary>
    [Table(Name = "ST_STOCKIN")]
    public class StockInEntity: EntityBase
    {
        /// <summary>
        /// 入库批次
        /// </summary>
        [Column(Name = "ADDSTORAGEBATCHCODE")]
        public string AddStorageBatchCode { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        [Column(Name = "MATERIALCODE")]
        public string  MaterialCode { get; set; }

        /// <summary>
        /// 物料id
        /// </summary>
        [Column(Name = "XBCMATTERRIALID")]
        public long XbcMatterrialId { get; set; }
        public XbcMaterrialEntity XbcMatterrial { get; set; }
        

        /// <summary>
        /// 库位Id
        /// </summary>
        [Column(Name = "XBCLOCATIONID")]
        public long XbcLocationId { get; set; }
        public XbcLocationEntity XbcLocation { get; set; }

        /// <summary>
        /// 产品批号
        /// </summary>
        [Column(Name = "PRODUCTBATCHCODE")]
        public string ProductBatchCode { get; set; }


        /// <summary>
        /// 来料批次
        /// </summary>
        [Column(Name = "MATERIALBATCHCODE")]
        public string MaterialBatchCode { get; set; }

      


        /// <summary>
        /// 有效期
        /// </summary>
        [Description("有效期")]
        [Column(Name = "EFFECTIVEDATE")]
        public DateTime? EffectiveDate { get; set; }

        /// <summary>
        /// 入库时间
        /// </summary>
        [Description("入库时间")]
        [Column(Name = "ADDSTORAGEDATE")]
        public DateTime? AddStorageDate { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [Description("数量")]
        [Column(Name = "NUM")]
        public long Num { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        [Description("剩余数量")]
        [Column(Name = "REMAINNUM")]
        public long RemainNum { get; set; }



        /// <summary>
        /// 出库id
        /// </summary>
        [Description("出库id")]
        [Column(Name = "CKID")]
        public long? CkId { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column(Name = "REMARK")]//
        public string Remark { get; set; }

        #region  需要添加


        /// <summary>
        /// 来料日期   
        /// </summary>
        [Description("来料日期")]
        [Column(Name = "MATERARRIDATE")]
        public DateTime? MaterArriDate { get; set; }

        //个性字段   

        /// <summary>
        /// pcblot号
        /// </summary>
        [Column(Name = "PCBLOTNUM")]
        public string PcbLotNum { get; set; }

        #endregion
    }
}
